package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/FEzxwms")
public class WmsPickingTaskRouter{
    @Autowired
    SysMenuService menuService;
    //拣货任务页面
    @RequestMapping(value = "/pickingTask/{menu}")
    public  String  tosupplier(@PathVariable("menu") String menu, Model model){
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "wmsPickingTask/pickingTask";
    }
    /*跳转到详情页面*/
    @RequestMapping(value = "/selectPickingTask")
    public String selectPickingTask(String ssydid, Model model) {
        System.out.println("ssydid："+ssydid);
        model.addAttribute("ssydid",ssydid);
        return "wmsPickingTask/selectPickingTask";
    }
    /*跳转到生成拣货任务页面*/
    @RequestMapping(value = "/createPickingTask")
    public String createPickingTask(String ssydid, Model model) {
        System.out.println("ssydid："+ssydid);
        model.addAttribute("ssydid",ssydid);
        return "wmsPickingTask/createPickingTask";
    }
}
